package org.michaelrenaud.pathfinder.shared.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Trait implements Serializable, HasEffects {

	private static final long serialVersionUID = -7974977824006703987L;
	private String name = "";
	private String description = "";
	private String shortDescription = "";
	private String type = "";
	private Map<String, Effect> effects = new HashMap<String, Effect>();

	public Trait() {
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public String getShortDescription() {
		return shortDescription;
	}

	public void setShortDescription(String shortDescription) {
		this.shortDescription = shortDescription;
	}

	public Map<String, Effect> getEffects() {
		return effects;
	}

	public void setEffects(Map<String, Effect> effects) {
		this.effects = effects;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Override
	public Effect getEffect(String stat) {
		return effects.get(stat);
	}
}
